package com.yztc.youbadbad.http;

import com.yztc.youbadbad.bean.homepage.DeserveBean;
import com.yztc.youbadbad.bean.other.ProductInfoBean;
import com.yztc.youbadbad.config.UrlConfig;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Tiffany.V.Chou on 2016/11/14.
 */

public interface IRetrofitApi {

    //首页--》值得买
    @GET(UrlConfig.HomepagePath.PATH_HAOWU)
    Observable<DeserveBean> getDeserveObservable(@Query("page") int page);

    @GET(UrlConfig.HomepagePath.PATH_OTHER1)
    Observable<String> getOtherObservable(@Path("path2")int path2);

    @GET(UrlConfig.OverseaPath.OVERSEA_PATH)
    Observable<String> getOverseaObservable(@Query("country") int country);

    @GET(UrlConfig.OverseaPath.OVERSEALIKE_PATH)
    Observable<String> getOverseaLike(@Query("country") int country);

    @GET(UrlConfig.HomepagePath.PATH_OTHER2)
    Observable<String> getOther2Observable(@Path("path2")int path2);


    //商品详情
    @GET(UrlConfig.ProductDetail.PRODUCTDETAIL_PATH)
    Observable<ProductInfoBean> getProdectInfoObservable(@Path("product_id") String product_id);

}
